package org.springblade.modules.repair.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * blade_maintain_parts_work_sku
 * @author
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "blade_maintain_parts_work_sku")
@Data
public class MaintainPartsWorkSku extends TenantEntity {

    /**
     * 任务详情id
     */
    private Long workId;

    /**
     * 部件关联的类目id
     */
    private Long categoryId;

    /**
     * 申请时，部件关联的skuId
     */
    private Long skuId;

    /**
     * 申请时，关联sku配件信息
     */
	@TableField(value = "sku_parts_info",typeHandler = JacksonTypeHandler.class)
    private JSONObject skuPartsInfo;

    /**
     * 审批后，部件关联的skuId
     */
    private Long finallySkuId;

    /**
     * 审批后，关联sku配件信息
     */
	@TableField(value = "finally_sku_parts_info",typeHandler = JacksonTypeHandler.class)
    private JSONObject finallySkuPartsInfo;

    /**
     * 单位值
     */
    private String unitNameValue;

}
